#include <stdio.h>

int main(void) {
    int reg = 0, tmp, n;
    scanf("%d", &n);
    for (int i = 0; i < n; i++) {
        scanf("%d", &tmp);
        reg += tmp;
    }
    printf("%d", reg);
}
